cmake_minimum_required(VERSION 3.15)
project(test_package LANGUAGES C)

find_package(zstd REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.c)
if (TARGET zstd::libzstd_shared)
    target_link_libraries(${PROJECT_NAME} PRIVATE zstd::libzstd_shared)
else()
    target_link_libraries(${PROJECT_NAME} PRIVATE zstd::libzstd_static)
endif()
